package com.atguigu.edu.service;

import com.atguigu.edu.entity.Chapter;
import com.atguigu.edu.entity.chapter.ChapterVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Rayyy666
 * @since 2022-04-02
 */
public interface ChapterService extends IService<Chapter> {

    //根据课程id，查询章节，小节信息
    List<ChapterVo> getChapterVideoByCourseId(String courseId);

    //删除章节
    boolean deleteChapter(String chapterId);

    //根据课程ID删除章节
    void removeChapterByCourseId(String courseId);
}
